package com.xyoto.community.enums;

public enum PictureEnum implements Code {


    /** 文件上传状态码枚举 */
    PICTURE_KEY_UPDATE_FAIL(3000,"图片key更新失败"),
    PICTURE_ALREADY_EXPIRE(3001,"图片已过期，请重新上传"),
    PICTURE_UPLOAD_ERROR(3002,"图片上传失败"),
    ;


    private int code;

    private String msg;

    PictureEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code ;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
